﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/BackSite.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    添加井
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="TablePlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    <div id="title" style="background-image: url('../../Content/images/toolbar_bg.gif'); background-repeat: repeat-x">
        <span class="font16 fLeft" style="font-size: 26px"><strong>添加井</strong></span><span class="fRight mR10 mT08"></span>
    </div>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <style type="text/css">
        .error {
            color: red;
        }
        .auto-style1 {}
        .auto-style2 {
            text-align: right;
            font-weight: bold;
        }
    </style>

    <script type="text/javascript">
        $(document).ready(function () {
            var ma = $('#form1').validate();

            jQuery.extend(jQuery.validator.messages, {
                required: "必填项",
                remote: "Please fix this field.",
                email: "邮箱格式不正确,请确认",
                url: "URL地址格式错误，请确认",
                date: "日期格式错误，请确认",
                dateISO: "日期格式(ISO)错误，请确认.",
                number: "请输入数字",
                digits: "请输入整数",
                creditcard: "信用卡号码格式错误",
                equalTo: "两次输入不一致",
                accept: "后缀名错误",
                mobile: "手机号码格式错误",
                tel: "电话号码格式错误",
                mobileOrTel: "手机或电话号码格式错误",
                qq: "QQ号码格式错误",
                chinese: "请输入中文",
                idcard: "身份证号码格式错误",
                letter: "请输入字母",
                ip: "IP地址格式错误",
                zipcode: "邮政编码格式错误",
                maxlength: $.validator.format("最多输入 {0} 个字符"),
                minlength: $.validator.format("最少输入 {0} 个字符"),
                rangelength: $.validator.format("字符长度介于 {0} 到 {1} 之间"),
                range: $.validator.format("值大小介于 {0} 到 {1}之间"),
                max: $.validator.format("最大值不超过 {0}"),
                min: $.validator.format("最小值不小于 {0}")
            });
            $("#btnSub").click(function () {
                var WellTypeSelect = $('#WellTypeSelect option:selected').val();
                var WorkZoneSelect = $('#WorkZoneSelect option:selected').val();
                var OilFieldSelect = $('#OilFieldSelect option:selected').val();
                var SSDDSelect = $('#SSDDSelect option:selected').val();
                var SSXDSelect = $('#SSXDSelect option:selected').val();
                $.ajax({
                    type: "POST",
                    url: "addWellOperation",
                    data: "WellTypeSelect=" + WellTypeSelect + "&&WorkZoneSelect=" + WorkZoneSelect + "&&OilFieldSelect=" + OilFieldSelect + "&&SSDDSelect=" + SSDDSelect + "&&SSXDSelect=" + SSXDSelect,
                    success: function (sesponseTest) {
                        alert(sesponseTest);
                    }
                });
            });
        });
    </script>

    <table style="height: 200%; width: 100%;">
        <tr>
            <td class="auto-style2">&nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style2">井的类型：</td>
            <td>
                &nbsp;&nbsp;
                <select id="WellTypeSelect" name="D1">
                    <option>采油井之抽油机井</option>
                    <option>采油井之电潜泵井</option>
                    <option>采油井之水力喷射井</option>
                    <option>采油井之自喷井</option>
                    <option>采油井之螺旋泵井</option>
                    <option>注水井</option>
                    <option>采气井</option>
                </select></td>
        </tr>
        <tr>
            <td class="auto-style2">所属作业区：</td>
            <td>
                &nbsp;
                <select id="WorkZoneSelect" name="D2">
                    <option>第一作业区</option>
                    <option>第二作业区</option>
                    <option>第三作业区</option>
                </select></td>
        </tr>
        <tr>
            <td class="auto-style2">所属油田：</td>
            <td>
                &nbsp;
                <select id="OilFieldSelect" name="D3">
                    <option>冀北3—A小油田</option>
                    <option>冀东2—B小油田</option>
                    <option>辽西4—C小油田</option>
                    <option>辽东1—D小油田</option>
                </select></td>
        </tr>
        <tr>
            <td class="auto-style2">所属大队：</td>
            <td>
                &nbsp;
                <select id="SSDDSelect" name="D4">
                    <option>第一采油大队</option>
                    <option>第二采油大队</option>
                    <option>第三采油大队</option>
                    <option>第一注水大队</option>
                    <option>第二注水大队</option>
                    <option>第三注水大队</option>
                    <option>第一采气大队</option>
                    <option>第二采气大队</option>
                    <option>第三采气大队</option>
                </select></td>
        </tr>
        <tr>
            <td class="auto-style2">所属小队：</td>
            <td>
                &nbsp;
                <select id="SSXDSelect" name="D5">
                    <option>第一采油小队</option>
                    <option>第二采油小队</option>
                    <option>第三采油小队</option>
                    <option>第四采油小队</option>
                </select></td>
        </tr>
        <tr>
            <td class="x-btn-inner-right">
                <input id="btnSub" type="button" value="添加" class="auto-style1" />&nbsp;&nbsp; </td>
            <td>
                &nbsp;
                <input id="BtnCancel" type="button" value="取消" /></td>
        </tr>
    </table>

</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="TableHeadPlaceHolder" runat="server">
</asp:Content>
